#include<iostream>
#include<cstring>
#include<string>
using namespace std;
int main()
{
	string a;
	getline(cin, a);
	int ans1 = 0, ans2 = 0;
	for (int i = 0; i < a.size() - 1; i++) {
		if (a[i] >= '0' && a[i] <= '9') {
			ans1++;
		}
		else if ((a[i] >= 'a' && a[i] <= 'z') || (a[i] >= 'A' && a[i] <= 'Z')) {
			ans2++;
		}
	}
	cout << "Letters=" << ans2 << endl;
	cout << "Digits=" << ans1 << endl;
	cout <<"Others="<< a.size() - 1 - ans1 - ans2 << endl;
	return 0;
}